import request from '@/utils/request'

export default {

  // 登录
  login: data => request('/api/ucenter/auth/login', {
      method: 'post',
      data,
    }),

  // 获取登录用户信息
  getInfo: token => request('/api/ucenter/auth/info', {
      method: 'get',
      params: { token },
    }),

  // 退出
  logout: () => request('/api/ucenter/auth/logout', {
      method: 'post',
    }),
}
